diff options
| author | Andrew Lee <andrew@alee14.me> | 2026-07-06 21:53:18 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2026-07-06 21:53:18 -0400 |
| commit | 22e353c04c1d15805be93e6922b45e9372415d8f (patch) | |
| tree | 0ea19f99716b8f81b38ea1dcf96314096998433d /src/pages/blog/[...slug].astro | |
| parent | 4300523e4e166b1ad2adc91f870f10a6c40c8a7c (diff) | |
| download | personal-website-22e353c04c1d15805be93e6922b45e9372415d8f.tar.gz personal-website-22e353c04c1d15805be93e6922b45e9372415d8f.tar.bz2 personal-website-22e353c04c1d15805be93e6922b45e9372415d8f.zip | |
update astro
Diffstat (limited to 'src/pages/blog/[...slug].astro')
| -rw-r--r-- | src/pages/blog/[...slug].astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 5f1b34a..6dc78ba 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -1,6 +1,6 @@ --- import Page from '../../layouts/BlogPost.astro'; -import { getEntry } from 'astro:content'; +import { getEntry, render } from 'astro:content'; import { formatDate } from "../../util"; const { slug } = Astro.params; @@ -14,7 +14,7 @@ if(entry === undefined) { return Astro.redirect('/404'); } -const { Content } = await entry.render(); +const { Content } = await render(entry); --- <Page title={entry.data.title} description={entry.data.description} pubDate={formatDate(entry.data.pubDate)} tags={entry.data.tags}> <main> |
